package com.feather.common.converter;

/**
 * @author flogyin
 */
public interface NameMatch {
	public static final int	NOT_MATCH	= -1;

	/**
	 * ----------------- example data: ----------------------------------------
	 * prefix = "MyClassName."
	 * 
	 * key = "MyClassName.xFieldName[0]" key = "MyClassName.yFieldName" key =
	 * "zColumnName"
	 * 
	 * ArrayIndex.start = "[" ArrayIndex.end = "]" (可以为空)
	 * 
	 * field = "xFieldName" ...
	 * ------------------------------------------------------------------------
	 * 
	 * return -1(NOT_MATCH) 没有匹配 >=0 匹配 或 多个匹配(数组)的下标
	 */
	int match(String prefix, String key, String field, ArrayIndex arrayindex);
}
